<?php

namespace app\health\model;

use think\Model;
use think\model\relation\BelongsTo;

class HealthUserStep extends Model
{
    protected $type = [
        'clock_in' => 'integral',
        'is_get'   => 'integral'
    ];

    /**
     * 关联用户信息
     * @return BelongsTo
     */
    public function user(): BelongsTo
    {
        return $this->belongsTo(HealthUser::class, 'user_id');
    }
}